package com.umeox.moto.mqtt.base;

public class ASend {
    protected final ARequest request;
    protected AResponse response;
    protected ISendStatus status;
    protected final IOnCallListener onCallListener;

    public ASend(ARequest request, IOnCallListener listener) {
        this.request = request;
        this.onCallListener = listener;
        this.status = ASendStatus.waitingToSend;
        this.response = new AResponse();
    }

    public ARequest getRequest() {
        return this.request;
    }

    public AResponse getResponse() {
        return this.response;
    }

    public IOnCallListener getOnCallListener() {
        return this.onCallListener;
    }

    public ISendStatus getStatus() {
        return this.status;
    }

}